{template header}
<h4 style="padding-left:10px;;">赛事统计 <i class="icon-search"></i></h4>
<p>赛事：{$matchInfo['name']} 时间：{eval echo date('Y-m-d',$matchInfo['stime'])}-{eval echo date('Y-m-d',$matchInfo['etime'])} 已报名：{$user_num}人/{$group_num}群 状态：{$matchInfo['status']}</p>
<a class="btn" href="?c=admin&a=matchStatistics&type=user&match_id={$matchInfo['match_id']}">个人赛数据( {$user_num} )</a>
<a class="btn" href="?c=admin&a=matchStatistics&type=group&match_id={$matchInfo['match_id']}">群组赛数据( {$group_num} )</a>
<a class="btn" href="#">赛事订单</a>
<a class="btn" target="_blank" href="?c=admin&a=matchStatistics&type={$type}&match_id={$matchInfo['match_id']}&excel=1">导出</a>
<div class="bs-docs-example pt-20" style="clear:both;">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>#</th>
                <th>uid</th>
                <th>{eval echo $type=='user' ? '姓名' : '群组名'}</th>
                <th>联系方式</th>
                <th>总次数</th>
                <th>总里程</th>
                <th>目标数据</th>
                <th>达标情况</th>
            </tr>
        </thead>
        <tbody>
            {loop $matchStatistics $k $v}
            <tr>
                <td>{$v['id']}</td>
                <td>{$v['uid']}</td>
                <td>
                {if $type=='group'}
                    {$v['group_name']}
                {else}
                    {$v['name']}
                {/if}
                </td>
                <td>电话：{$v['phone']}，性别：{eval echo !isset($v['gender']) ? '' : $v['gender']==1 ? '男' : '女'}</td>
                <td>{$v['total_times']}</td>
                <td>{$v['total_mileage']}</td>
                <td>{$v['recent_data']}</td>
                <td>{eval echo $v['dabiao'] ? '达标' : '未达标'}</td>
            </tr>
            {/loop}
        </tbody>
    </table>
</div>

<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
{template footer}